package com.hzhc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hzhc.entity.CarInfo;
import com.hzhc.entity.CompanyInfo;
import com.hzhc.vo.CarInfoVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 车辆信息 Mapper 接口
 * </p>
 *
 * @author 功不唐捐
 * @since 2024-05-23
 */
public interface CarInfoMapper extends BaseMapper<CarInfo> {
    IPage<CarInfo> selectCarInfo(Page<CarInfo> pagination, @Param("vo")CarInfoVo vo);
//    List<CompanyInfo> selectCarInfoList(@Param("vo")CompanyInfo vo);


    IPage<CarInfo> selectCarJsonPage(Page<CarInfo> page, CarInfoVo vo);
    IPage<CarInfoVo> selectYZSCarJsonPage(Page<CarInfoVo> page, CarInfoVo vo);

    List<CarInfo> getCarNoList(@Param("car") CarInfo car);

    List<CarInfoVo> getSgjYwCarList(@Param("vo") CarInfoVo vo);

    CarInfo getByCarNo(@Param("carNo") String carNo);

    List<CarInfoVo> getCarListByVeh(@Param("vo") CarInfoVo vo);

    List<CarInfo> selectCarinfos();

    List<CarInfo> getByCarNos(String carNo,String  companyName);

    List<CarInfo> getListByComIds(@Param("car") CarInfoVo car);

}
